package com.boot.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@RestController
@RequestMapping("/demo")
public class DemoController {

    @GetMapping
    public Map<String , String> demo(){
        Map<String , String> map = new HashMap<>();
        map.put("message" , "hello world");
        map.put("username","张三");
        return map;
    }
}
